#ifndef SAFEWIDGET_H
#define SAFEWIDGET_H

#include <QParallelAnimationGroup>
#include <QStackedWidget>
#include <QWidget>

#include <src/clean/cleanwidget.h>
#include <src/sqltest/sqlitetest.h>
#include <src/sqltest/axisdata.h>
#include <src/sqltest/serialset.h>
#include <src/youhua/youhuawidget.h>
#include <src/main/common/shadowwidget.h>

class SafeScanBottom;
class WenliBackWidget;
class StackStatusWidget;

class SafeWidget : public ShadowWidget
{
    Q_OBJECT
public:
    explicit SafeWidget(QWidget *parent = 0);

private slots:
   void goToClean();
   void goToYouhua();
   void goToMained();
   void goToTest();
   void closeWidget();

signals:
   void goToMain();
private:
    void initUI();
    void initConnect();

private:
    WenliBackWidget *m_topBackWidget;
    StackStatusWidget   *m_stackStatusWidget;
    SafeScanBottom  *m_scanBottomWidget;
    QStackedWidget  *m_stackWidget;
//    SafeWidget  *m_safeWidget;
    CleanWidget *m_cleanWidget;
    serialSet * m_serialSet;
    YouhuaWidget    *m_youhuaWidget;
    axisData    *m_axisData;
    QParallelAnimationGroup *m_upGroup;
    QParallelAnimationGroup *m_downGroup;
    sqliteTest *m_sqliteTest;

};

#endif // SAFEWIDGET_H
